package ru.spbsu.electromenu.service;

import ru.spbsu.electromenu.model.Order;
import ru.spbsu.electromenu.storage.OrderStorage;

import java.util.List;

/**
 * Date: 3/22/11
 * Time: 1:03 AM
 *
 * @author Artem Titov
 */
public class OrderService extends AbstractService<Order, OrderStorage> {
    public List<Order> getConfirmed(final boolean confirmed) {
        return storage.getConfirmed(confirmed);
    }

    public int deleteOrderedDish(final int orderId, final int dishId, final int amount) {
        return storage.deleteOrderedDish(orderId, dishId, amount);
    }

    public int confirm(final int orderId, final boolean confirm) {
        return storage.confirm(orderId, confirm);
    }
}
